<?php if( ! defined('ABSPATH')) exit('restricted access'); /** Do not delete these lines */
	
/** if post is password protected then password is required */
if ( post_password_required() )
{?>
	<p class="alert"><?php _e( 'This post is password protected. Enter the password to view comments.', THEME_NAME ); ?></p>
	<?php return;
} 

/** Let's Seperate the comments from Trackbacks */
if(have_comments())
{?>

	<div class="block">

		<div class="heading"><?php comments_number( __( '0 Comments', THEME_NAME ), __( '1 Comment', THEME_NAME ), __( '% Comments', THEME_NAME ) ); ?> for &#8220;<?php the_title(); ?>&#8221;</div>
		
		<div class="comments_area" id="comments">			
			<ul><?php wp_list_comments( 'type=comment&callback=wl_list_comments' ); /** Callback to Comments */ ?></ul>
		</div>
		
		<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
			<div class="pagination"><?php paginate_comments_links(); ?></div>
		<?php endif; ?>
		
	</div>
	
<?php
}else
{	
	/** If comments are open, but there are no comments. */
	if( ! comments_open()) : ?>
		<h3><?php _e( 'Sorry comments are closed for this Post.', THEME_NAME ); ?></h3>
	<?php endif;
}?>

<div class="block last">
	<div class="comment_form">
		<?php wl_comment_form(); /**  print the created comment form */ ?>
	</div>
</div>